/**
 * 
 */
package com.doone.telmarket.infrastructure.dao;

import java.util.List;

import com.doone.telmarket.domain.OrderSort;
import com.doone.telmarket.domain.ServiceProduct;
import com.doone.telmarket.domain.ServiceProductView;
import com.doone.telmarket.vo.HotBusiVo;
import com.doone.telmarket.vo.ServiceVo;

/**
 * 
 * @author 吴同庆
 * @date 2009-10-9
 * @description 
 * @package com.doone.telmarket.infrastructure.dao
 */
public interface ServiceProductDAO {

	//根据产品ID查询产品
	ServiceProduct selectServiceProductByPrimaryKey(String productId);

	//根据产品ID删除产品
	int deleteServiceProductByPrimaryKey(String productId);

	//根据业务ID删除产品
	int deleteServiceProductByServiceCode(Integer serviceCode);

	//保存产品类别
	ServiceProduct saveServiceProduct(ServiceProduct serviceProduct);

	List<ServiceProduct> selectServiceProductByPrimaryKeyArray(String productIdArray);

	//订购排行
	public List<OrderSort> selectServiceOrderSort();

	public int selectBuyCount(String id);

	public int selectScCount(int id);

	public List<ServiceProductView> getNextPage(int page, String serviceTypeName);

	public List<ServiceProductView> getPriviPage(int page, String serviceTypeName);

	public List<ServiceProductView> getEndPage(String serviceTypeName);

	public int getMaxPage(String serviceTypeName);

	public List<ServiceProduct> getProductByType(String typeName);

	public void deleteHotBusiByTypeName(String typeName);

	public void saveHotBusi(ServiceProductView productView);

	public List<ServiceProductView> selectIndexHotBusi(String serviceTypeName);

	public List<ServiceProductView> getProductView(ServiceVo sv);

	public void deleteIndexHotByServiceCode(int id);

	public void insertHotBusi(HotBusiVo view);

	public void deleteHotBusi(String type);

	public List<HotBusiVo> getHotBusi(String type);
	
	public void updateServiceProduct(ServiceProduct pro);
}
